<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/jquery.menu.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/user-center.css">
</head>
<div class="left" style="overflow:hidden">
    <ul id="accordion" class="accordion" style="margin-top:-1px">
        <li class="open">
            <a class="link status" href="{:U('Survey/index')}">
            	<div><i class="fa fa-bar-chart"></i>概览</div>
            </a>
        </li> 
        <li class="open">
            <div class="link status">
                <i class="fa fa-star"></i>会员中心
            </div>
            <ul class="submenu" style="display: none;">
                <li><a class="status" href="{:U('User/index')}">个人信息</a></li>
                <li><a class="status" href="{:U('Regbusiness/index')}">域名注册商账号</a></li>
                <li><a class="status" href="{:U('User/pwd')}">密码安全设置</a></li>
                <li><a class="status" href="{:U('BankAccount/index')}">收款账户</a></li>
                <li><a class="status" href="{:U('Operalog/index')}">日志</a></li>
            </ul>
        </li>
        <li class="open">
            <div class="link"><i class="fa fa-exchange"></i>理财配置</div>
            <ul class="submenu" style="display: none;">
                <li><a class="status" href="{:U('Mycredit/myloaderinfo')}" class=" ">我的借款标</a></li>
                <li><a class="status" href="{:U('Mycredit/myinvestorinfo')}" class=" ">我的投资标</a></li>
                <li><a class="status" href="{:U('Mycredit/myinverflow')}" class=" ">我的投资</a></li>
                <li><a class="status" href="{:U('Mycredit/myloanflow')}" class=" ">我的借款</a></li>
            </ul>
        </li>
        <li class="open">
            <a class="link status" href="{:U('Packet/index')}">
                <div><i class="fa fa-gift"></i>我的福利   
                </div>
            </a>
        </li>
        <li class="open">
            <a class="link  status" href="{:U('DomainAudit/index')}">
                <div><i class="fa fa-sign-in"></i>提交域名</div>
            </a>
        </li>
        <li class="open">
            <a class="link status" href="{:U('Mydomain/index')}">
                <div><i class="fa fa-database"></i>我的域名</div>
            </a>
        </li>
       <!--  <li class="open">
            <a class="link status" href="{:U('Mydomort/index')}">
                <div><i class="fa fa-cubes"></i>我的抵押</div>
            </a>
        </li> -->
        <li class="open">
            <div class="link"><i class="fa fa-exchange"></i>交易</div>
            <ul class="submenu" style="display: none;">
                <li><a class="status" href="{:U('UserEntrust/index')}" class=" ">委托买卖</a></li>
                <li><a class="status" href="{:U('Translog/index')}" class=" ">交易记录</a></li>
            </ul>
        </li>
        <li class="open">
            <div class="link"><i class="fa fa-bar-chart"></i>财务</div>
            <ul class="submenu" style="display: none;">
                <li><a class="status" href="{:U('Center/charge')}" class=" ">充值</a></li>
                <li><a class="status" href="{:U('Depositlog/index')}" class=" ">提现</a></li>
                <li><a class="status" href="{:U('Depositlog/getCaptDetail')}" class=" ">资金明细</a></li>
            </ul>
        </li>

        <li class="open">
            <a class="link status" href="{:U('Turnoutlog/index')}">
            <div><i class="fa fa-sign-out"></i>转出域名</div>
            </a>
        </li>
        <li class="open">
            <a class="link status" href="{:U('User/share')}">
                <div><i class="fa fa-share-alt"></i>分享推广</div>
            </a>
        </li>
</ul>
</div>
    <script>
        $(document).ready(function(){
        	/*查询福利数量*/
             $.ajax({
                 url:"{:U('Packet/getCount')}",
                 type:"GET",
                 success:function(resp){
                	 $("#count").text(resp.count);
                 }
             }).fail(function(){
                 isCancelling = false;
             });
             $(".status").each(function(index){
            	 if(window.location.href.indexOf($(this).attr("href")) >0){
             		$(this).addClass("active-menu");
             		$(this).parent().parent().css("display",'block');
             		$(this).parent().parent().parent().addClass('open');
            	 };
             }) 
        });
    </script>